import './assets/style/main.css'

import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import { QuillEditor } from '@vueup/vue-quill'
import '@vueup/vue-quill/dist/vue-quill.snow.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue' // element-icons 图标引入
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import { createPinia } from 'pinia'
import router from './router/index' // 路由引入
import './utils/permission'
import App from './App.vue'
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.component('QuillEditor', QuillEditor)
app.use(ElementPlus, {
  locale: zhCn
})
app.use(createPinia())
app.use(router)
app.use(ElementPlus)
app.mount('#app')
